/********************************************
 * 功能说明: 
 * 模块名称: 
 * 系统名称: 
 * 软件版权: 
 * 系统版本: 1.0.0
 * 开发人员: zhangfb
 * 开发时间: 2019/4/9 17:05
 * 审核人员: 
 * 相关文档: 
 * 修改记录: 修改日期 修改人员 修改说明
 *********************************************/
package com.hyacinth.activity.entity;

import com.hyacinth.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 活动记录
 * @author zhangfb
 * @version 1.0.0.1
 * @since JDK 1.8
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Entity
@Table(name = "hoyi_parti_act_record")
public class PartiActRecord extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**用户编码**/
    @Column(nullable = false, length = 32)
    private String userCode;
    /**活动方案编码**/
    @Column(nullable = false, length = 32)
    private String activityCode;
    /**活动奖品编码**/
    @Column(length = 32)
    private String awardCode;
    /**业务编码**/
    @Column(length = 32)
    private String bizCode;
    /**业务类型**/
    @Column(length = 2)
    private String bizType;
    /**触发类型**/
    @Column(length = 2)
    private String triggerType;
    /**商户编码**/
    @Column(length = 32)
    private String shopCode;
    /**用户参与日期**/
    private Date partiTime;
    /**用户奖励额度**/
    @Column(precision = 10, scale = 2, columnDefinition = "decimal(10,2) default 0.00")
    private BigDecimal rewardAmt;
    /**该活动记录是否有效  1有效  0失效**/
    @Column(length = 1, nullable = false, columnDefinition = "char default '1'")
    private Boolean isValid;
}
